#pragma once


#include <FL/Fl_Widget.H>
#include "GenericPlugin.h"

class Beat: public  GenericPlugin
{
    private:
        double amplitude;
        static void gainChanged_CB(Fl_Widget*, void*userdata);
        double oscRad;
        double freq;
        double fade;

    public:

        Beat();
        void initMaster();
        virtual Fl_Widget * displayWindow();
        void isFree();
        void newSlave();
        void handleEvent( pluginEvent* event );
        void processBuffer( float *outputBuffer, unsigned long framesPerBuffer );
};

AUTO_REGISTER_GENERIC_PLUGIN(Beat);
